home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 8 / Night Owl CD-ROM (NOPV8) (Night Owl Publisher) (1993).ISO / 034a / aecur101.arj / CONTRIB / CURSES / INC / AECC.H next >
C/C++ Source or Header  |  1992-05-31  |  3KB  |  133 lines

  1. /**********************************************************************
  2.  *  
  3.  *  NAME:           aecc.h
  4.  *  
  5.  *  DESCRIPTION:    include common compiler headers
  6.  *  
  7.  *  This file is placed in the public domain.
  8.  *
  9.  *  M O D I F I C A T I O N   H I S T O R Y
  10.  *
  11.  *  when        who                 what
  12.  *  -------------------------------------------------------------------
  13.  *  11/11/90    J. Alan Eldridge    created
  14.  *  
  15.  *  12/23/90    JAE                 simplified conditionals a bit,
  16.  *                                  added new.h for TC++ 1.90 
  17.  *
  18.  *********************************************************************/
  19.  
  20. #if !defined(__AECC_H)
  21.  
  22. #define __AECC_H    1
  23.  
  24. /**********************************************************************
  25.  *  
  26.  *  version # for TC++ 1.0, TC++ 1.90 beta
  27.  *  
  28.  *********************************************************************/
  29.  
  30. #define CPP100VER   0x295   /*  should be 0x0100    */
  31. #define CPP190VER   0x297   /*  should be 0x0190    */
  32.  
  33. /**********************************************************************
  34.  *
  35.  *  we always want the basic ANSI .h files
  36.  *  
  37.  *********************************************************************/
  38.  
  39. #if defined(__GNUG__) || defined(__GNUC__)
  40.  
  41. #define _CLOCK_T_   long
  42.  
  43. #endif
  44.  
  45. #include    <ctype.h>
  46. #include    <errno.h>
  47. #include    <limits.h>
  48. #include    <setjmp.h>
  49. #include    <stdarg.h>
  50. #include    <stdio.h>
  51. #include    <stdlib.h>
  52. #include    <string.h>
  53. #include    <time.h>
  54.  
  55. #if defined(__GNUG__) || defined(__GNUC__)
  56.  
  57. #include    <unistd.h>
  58. #include    "libae.h"
  59.  
  60. #ifdef  __cplusplus
  61. extern "C" int  atexit(void (*)());
  62. #else
  63. extern int      atexit(void (*)());
  64. #endif
  65.  
  66. #endif
  67.  
  68. /**********************************************************************
  69.  *  
  70.  *  the rest of these .h files are special purpose
  71.  *  
  72.  *  their inclusion is controlled by preprocessor defines:
  73.  *  
  74.  *  symbol          files
  75.  *  ------------------------------------------------------------
  76.  *  INCL_DOS        bios.h,dos.h,dir.h
  77.  *  
  78.  *  INCL_CONIO      conio.h
  79.  *  
  80.  *  INCL_MEM        mem.h,alloc.h,new.h (TC++ 1.90 only)
  81.  *  
  82.  *  INCL_IOSTREAM   iostream.h,iomanip.h,fstream.h
  83.  *
  84.  *  INCL_FILEIO     fcntl.h,io.h,sys/stat.h
  85.  *                  share.h
  86.  *  
  87.  *********************************************************************/
  88.  
  89. /*  DOS/BIOS interface  */
  90. #if INCL_DOS
  91. #include    <bios.h>
  92. #include    <dos.h>
  93. #include    <dir.h>
  94. #endif  /*  INCL_DOS    */
  95.  
  96. /*  TURBO C++ console io    */
  97. #if INCL_CONIO
  98.  
  99. #if     defined(__TURBOC__)
  100. #include    <conio.h>
  101. #elif   defined(__GNUG__) || defined(__GNUC__)
  102. #include    <pc.h>
  103. #include    <gppconio.h>
  104. #endif
  105.  
  106. #endif  /*  INCL_CONIO  */
  107.  
  108. /*  memory allocation   */
  109. #if INCL_MEM
  110. #if defined(__cplusplus) && __TURBOC__ >= CPP190VER
  111. #include    <new.h>
  112. #endif
  113. #include    <mem.h>
  114. #include    <alloc.h>
  115. #endif  /*  INCL_MEM    */
  116.  
  117. /*  C++ 2.0 streams */
  118. #if INCL_IOSTREAM && defined(__cplusplus)
  119. #include    <iostream.h>
  120. #include    <iomanip.h>
  121. #include    <fstream.h>
  122. #endif  /*  INCL_IOSTREAM   */
  123.  
  124. /*  low-level (read(),write()) file io  */
  125. #if INCL_FILEIO
  126. #include    <fcntl.h>
  127. #include    <io.h>
  128. #include    <sys/stat.h>
  129. #include    <share.h>
  130. #endif  /*  INCL_FILEIO */
  131.  
  132. #endif  /*  !defined(__AECC_H)  */
  133.